package kosta.model;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
@Service
public class CategoryServiceImpl implements CategoryService{
	@Resource(name="categoryDaoImpl")
	private CategoryDao categoryDao;
	@Override
	public List<Map> selectAllFirstCategory() throws Exception {
		return this.categoryDao.selectAllFirstCategory();
	}
	@Override
	public List<Map> selectSecondCategoryByFId(String firstCategoryId)
			throws Exception {
		return this.categoryDao.selectSecondCategoryByFId(firstCategoryId);
	}
	@Override
	public List<Map> selectThirdCategoryBySId(String secondCategoryId)
			throws Exception {
		return this.categoryDao.selectThirdCategoryBySId(secondCategoryId);
	}
	
	@Override
	public List<ProductVO> selectProductInfoByTId(String thirdCategoryId)
			throws Exception {
		return this.categoryDao.selectProductInfoByTId(thirdCategoryId);
	}
	@Override
	public ProductVO selectProductById(String productId) throws Exception {
		return this.categoryDao.selectProductById(productId);
	}
}
